package com.beerandjesus.sportofkings.handicapper.factory.brisnet.singlefile;

import com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.TrainerJockeyOwner;
import com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile.TrainerJockeyOwnerImpl;

public class TrainerJockeyOwnerFactoryImpl extends AbstractObjectFactoryImpl implements TrainerJockeyOwnerFactory {
	
	private KeyTrainerStatisticsFactory keyTrainerStatisticsFactory;
	private JockeyAtDistanceOrOnTurfFactory jockeyAtDistanceOrOnTurfFactory;

	public TrainerJockeyOwner getTrainerJockeyOwner(String line) {
		String[] values = getValues(line);
		return getTrainerJockeyOwner(values);
	}

	public TrainerJockeyOwner getTrainerJockeyOwner(String[] values) {
		TrainerJockeyOwnerImpl t = new TrainerJockeyOwnerImpl();
		t.setTrainerName(val(values,28));
		t.setTrainerCurrentMeetStarts(val(values,29));
		t.setTrainerCurrentMeetWins(val(values,30));
		t.setTrainerCurrentMeetPlaces(val(values,31));
		t.setTrainerCurrentMeetShows(val(values,32));
		t.setJockeyName(val(values,33));
		t.setJockeyApprenticeWtAllow(val(values,34));
		t.setJockeyCurrentMeetStarts(val(values,35));
		t.setJockeyCurrentMeetWins(val(values,36));
		t.setJockeyCurrentMeetPlaces(val(values,37));
		t.setJockeyCurrentMeetShows(val(values,38));
		t.setOwner(val(values,39));
		t.setOwnerSilks(val(values,40));
		t.setTrainerJockeyStarts(val(values,219));
		t.setTrainerJockeyWins(val(values,220));
		t.setTrainerJockeyPlaces(val(values,221));
		t.setTrainerJockeyShows(val(values,222));
		t.setTrainerJockeyROI(val(values,223));
		t.setKeyTrainerStatistics(getKeyTrainerStatisticsFactory().getKeyTrainerStatistics(values));
		t.setJockeyAtDistanceOrOnTurf(getJockeyAtDistanceOrOnTurfFactory().getJockeyAtDistanceOrOnTurf(values));
		return t;
	}

	public KeyTrainerStatisticsFactory getKeyTrainerStatisticsFactory() {
		return keyTrainerStatisticsFactory;
	}

	public void setKeyTrainerStatisticsFactory(
			KeyTrainerStatisticsFactory keyTrainerStatisticsFactory) {
		this.keyTrainerStatisticsFactory = keyTrainerStatisticsFactory;
	}

	public JockeyAtDistanceOrOnTurfFactory getJockeyAtDistanceOrOnTurfFactory() {
		return jockeyAtDistanceOrOnTurfFactory;
	}

	public void setJockeyAtDistanceOrOnTurfFactory(
			JockeyAtDistanceOrOnTurfFactory jockeyAtDistanceOrOnTurfFactory) {
		this.jockeyAtDistanceOrOnTurfFactory = jockeyAtDistanceOrOnTurfFactory;
	}

}
